/** 操作成功或操作失败 弹框提示**/
function Notify(status,info){
	this.status=status;
	this.info=info;
	this.init()
}
Notify.prototype.init = function(){
	var type = this.status;
	if(type == 'success'){
		$.smallBox({
			title: "成功信息",
			content: "<i class='fa fa-clock-o'></i> <i>"+this.info+"</i>",
			color: "#659265",
			iconSmall: "fa fa-check fa-2x fadeInRight animated",
			timeout: 4000
		});
	}else if(type == 'fail'){
		$.smallBox({
			title: "失败信息",
			content: "<i class='fa fa-clock-o'></i> <i>"+this.info+"</i>",
			color: "#a90329",
			iconSmall: "fa fa-exclamation-triangle fa-2x fadeInRight animated",
			timeout: 4000
		});
	}else if(type == 'info'){
		$.smallBox({
			title: "提示信息",
			content: "<i class='fa fa-clock-o'></i> <i>"+this.info+"</i>",
			color: "#c79121",
			iconSmall: "fa fa-exclamation-triangle fa-2x fadeInRight animated",
			timeout: 4000
		});
	}
};
//获取当前时间
function getNowFormatDate() {
	var date = new Date();
	var seperator1 = "-";
	var seperator2 = ":";
	var month = date.getMonth() + 1;
	var strDate = date.getDate();
	if (month >= 1 && month <= 9) {
		month = "0" + month;
	}
	if (strDate >= 0 && strDate <= 9) {
		strDate = "0" + strDate;
	}
	var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
			+ " " + date.getHours() + seperator2 + date.getMinutes()
			+ seperator2 + date.getSeconds();
	return currentdate;
}


//js获取日期：前天、昨天、今天、明天、后天
function GetDateStr(AddDayCount) { 
	var dd = new Date(); 
	dd.setDate(dd.getDate()+AddDayCount);//获取AddDayCount天后的日期 
	var y = dd.getFullYear(); 
	var m = dd.getMonth()+1;//获取当前月份的日期 
	var d = dd.getDate(); 
	return y+"-"+m+"-"+d; 
}
// "前天："+GetDateStr(-2) 
// "昨天："+GetDateStr(-1) 
// "今天："+GetDateStr(0) 
// "明天："+GetDateStr(1) 
// "后天："+GetDateStr(2) 
// "大后天："+GetDateStr(3) 